<!DOCTYPE html>
<html>
{include file="public/head" /}
<body class="zanpian-body">
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="callout callout-title">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <h4>{$nav.title}</h4>
                {notempty name="nav.remark"}
                <p>{$nav.remark}</p>
                {/notempty}
</div>
          <div class="nav-tabs-custom">
            <ul class="nav nav-tabs">
         {volist name="list_menu" id="item"}
             {notin name="key" value="rewrite"}
            <li {eq name="key" value="site"}class="active"{/eq}><a href="#tab_{$key}" data-toggle="tab">{$item}</a></li>
            {/notin}
         {/volist}             
            </ul>  
            <form id="myform" class="myform form-horizontal" method="post" load="no" action="{:url('up')}">  
<div class="panel-body">
{volist name="list_menu" id="vo"}
    {notin name="key" value="rewrite"}
    <div class="tab-content tab-fade fade {eq name="key" value="site"}active in{/eq} " id="tab_{$key}">
    {volist name="list[$key]" id="item"}    
    {switch name="item['type']"}
    {case value="password"}
               <div class="input-group margin" {notempty name="item['other']"}id="{$item['other']}"{else /}id="{$item['name']}"{/notempty}>
                <div class="input-group-btn">
                  <span  class="btn btn-default form-txt">{neq name="item['type']" value="tags"}{$item['title']}：{/neq}</span>
                </div>
                <!-- /btn-group -->
                
                <input type="password" class="form-control form-txt {$item['style']}" name="{$item.class}[{$item['name']}]" value="{$item['value']}"  autocomplete="off"  required="required" placeholder="{$item.remark}" data-tip="{$item.remark}">
              </div>
              {/case}              
     {case value="textarea"}
               <div class="input-group margin" {notempty name="item['other']"}id="{$item['other']}"{else /}id="{$item['name']}"{/notempty}>
               <div class="input-group-btn">
               <span class="btn btn-default form-txt" style=" position:absolute;top:0px;">{neq name="item['type']" value="tags"}{$item['title']}：{/neq}</span>
                  <span class="form-txt-hide"></span>
                  </div>
                <!-- /btn-group -->
               <textarea class="form-control {$item['style']}" name="{$item.class}[{$item['name']}]"  {eq name="item['name']" value="url_rewrite_route"}rows="20"{else/}rows="5"{/eq} data-tip="{$item.remark}">{$item['value']}</textarea>
              </div>
              {/case}
     {case value="num"}
                <div class="input-group margin" {notempty name="item['other']"}id="{$item['other']}"{else /}id="{$item['name']}"{/notempty}>
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">{neq name="item['type']" value="tags"}{$item['title']}：{/neq}</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control {$item['style']}" name="{$item.class}[{$item['name']}]" value="{$item['value']}"  autocomplete="off"  {neq name="item['style']" value="w200"}data-tip="{$item.remark}"{/neq} style="text-align:center"> 
                 {eq name="item['style']" value="w200"}
                <span data-tip="{$item.remark}" class="tips">{$item.remark}</span>
                {/eq}                 
              </div> 
              {/case}              
      {case value="notextarea"}
               <div class="input-group margin" {notempty name="item['other']"}id="{$item['other']}"{else /}id="{$item['name']}"{/notempty}>
               <div class="input-group-btn">
               <span class="btn btn-default form-txt" style=" position:absolute;top:0px;">{neq name="item['type']" value="tags"}{$item['title']}：{/neq}</span>
                  <span class="form-txt-hide"></span>
                  </div>
                <!-- /btn-group -->
               <textarea class="form-control {$item['style']}" name="{$item.class}[{$item['name']}]"  rows="5" data-tip="{$item.remark}">{$item['value']}</textarea>
              </div>
              {/case}
      {case value="select"}
               <div class="input-group margin" {notempty name="item['other']"}id="{$item['other']}"{else /}id="{$item['name']}"{/notempty}>
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">{neq name="item['type']" value="tags"}{$item['title']}：{/neq}</span>
                </div>
                <!-- /btn-group -->
           <div class="select-group {$item['style']}">     
 			<select  name="{$item.class}[{$item['name']}]"  class="form-control select2 {$item['style']}" data-tip="{$item.remark}" style="width:100%">
			{volist name=":parse_config_attr($item['extra'])" id="vo"}
			<option value="{$key}" {eq name="item['value']" value="$key"}selected{/eq}>{$vo}</option>
			{/volist}
			</select>  
            </div>
              <span data-tip="{$item.remark}" class="tips">{$item.remark}</span>         
              </div>
              {/case} 
      {case value="bool"}
               <div class="input-group margin" {notempty name="item['other']"}id="{$item['other']}"{else /}id="{$item['name']}"{/notempty}>
                <div class="input-group-btn">
                  <span  class="btn btn-default form-txt">{neq name="item['type']" value="tags"}{$item['title']}：{/neq}</span>
                </div>
                <!-- /btn-group -->
                <div class="select-group {$item['style']}"> 
 			<select  name="{$item.class}[{$item['name']}]"  class="form-control select2" data-tip="{$item.remark}" style="width:100%">
			{volist name=":parse_config_attr($item['extra'])" id="vo"}
			<option value="{$key}" {eq name="item['value']" value="$key"}selected{/eq}>{$vo}</option>
			{/volist}              
                </select>
                </div>
              </div>
              {/case}                                          
       {case value="pctheme"}
               <div class="input-group margin" {notempty name="item['other']"}id="{$item['other']}"{else /}id="{$item['name']}"{/notempty}>
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">{neq name="item['type']" value="tags"}{$item['title']}：{/neq}</span>
                </div>
                <!-- /btn-group -->
                <div class="select-group {$item['style']}">
			<select name="{$item.class}[{$item['name']}]" class="form-control select2" data-tip="{$item.remark}" style="width:100%">
			{if isset($homedir)}{volist name="homedir" id="admin"}
            <option value="{$admin.filename}" {eq name="admin.filename" value="$item['value']"}selected{/eq}>{$admin.filename}</option>{/volist}{/if}
			</select>
            </div>
              </div>
              {/case}   
        {case value="mobiletheme"}
               <div class="input-group margin" {notempty name="item['other']"}id="{$item['other']}"{else /}id="{$item['name']}"{/notempty}>
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">{neq name="item['type']" value="tags"}{$item['title']}：{/neq}</span>
                </div>
                <!-- /btn-group -->
                <div class="select-group {$item['style']}">
			<select name="{$item.class}[{$item['name']}]" class="form-control select2" data-tip="{$item.remark}" style="width:100%">
			{if isset($homedir)}{volist name="homedir" id="admin"}<option value="{$admin.filename}" {eq name="admin.filename" value="$item['value']"}selected{/eq}>{$admin.filename}</option>{/volist}{/if}
			</select>
            </div>
              </div>
              {/case} 
         {case value="usertheme"}
               <div class="input-group margin" {notempty name="item['other']"}id="{$item['other']}"{else /}id="{$item['name']}"{/notempty}>
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">{neq name="item['type']" value="tags"}{$item['title']}：{/neq}</span>
                </div>
                <!-- /btn-group -->
                <div class="select-group {$item['style']}">
			<select name="{$item.class}[{$item['name']}]" class="form-control select2" data-tip="{$item.remark}" style="width:100%">
			{if isset($userdir)}{volist name="userdir" id="admin"}<option value="{$admin.name}" {eq name="admin.name" value="$item['value']"}selected{/eq}>{$admin.name}</option>{/volist}{/if}
			</select>
            </div>
              </div>
              {/case} 
                {default /}   
                <div class="input-group margin" {notempty name="item['other']"}id="{$item['other']}"{else /}id="{$item['name']}"{/notempty}>
                <div class="input-group-btn">
                  <span class="btn btn-default form-txt">{neq name="item['type']" value="tags"}{$item['title']}：{/neq}</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control {$item['style']}" name="{$item.class}[{$item['name']}]" value="{$item['value']}"  autocomplete="off"  {neq name="item['style']" value="w200"}data-tip="{$item.remark}"{/neq}>
                {eq name="item['style']" value="w200"}
                <span data-tip="{$item.remark}" class="tips">{$item.remark}</span>
                {/eq}
                {eq name="item['name']" value="prefix"}
                <span class="input-group-btn">
                     <span  class="btn btn-primary btn-flat" id='{$item['name']}_click'>随机</span>
                    </span>
                {/eq} 
                {eq name="item['name']" value="password"}
                <span class="input-group-btn">
                     <span class="btn btn-primary btn-flat" id='{$item['name']}_click' data-url="{:url('check_cache')}">点击测试</span>
                    </span>
                {/eq}                   
              </div>                                                                        
              {/switch}             
               {/volist}
            
 
                         
            
            </div>
           <!-- /.tab-content --> 
           {/notin}
           {/volist} 
         </div>
         <!-- /.panel-body --> 
          <div class="layui-layer-footer">
            <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">修改</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
            </div>
       </div> 
            </form>     
          </div>
          <!-- /.nav-tabs-custom -->
        </div>
        </div>
        </section>
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.config();					   
});	
</script>
</body>
</html>
